package com.neepu.dao;

import com.neepu.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {

    User login(@Param("loginname") String loginname, @Param("password") String password,@Param("role") Integer role);

    User toFindPassword(@Param("loginname") String loginname, @Param("email") String email,@Param("role") Integer role);

    void updatePassword(User user);

    User finUserById(String id);

    List<User> finUserByRole();

    List<User> finUserByContent(String content);
}
